package com.jier.common.validate;

import com.jier.aop.ValidateAspectHandel;
import com.jier.common.exception.HttpParamException;
import org.aspectj.lang.annotation.Aspect;
import org.springframework.stereotype.Component;

import java.lang.reflect.Method;

/**
 * 参数验证
 *
 * @author jie_r
 * @date 2017/7/9
 */
@Component
@Aspect
public class ParamValidate extends ValidateAspectHandel {
    @Override
    public Object error(Method method, String errorMsg) throws Exception {
        throw new HttpParamException(errorMsg);
    }
}
